export function setBrowserTitle (title: string): void {
    document.title = title
}

export enum deviceType{
    MOBILE, IPAD, DESKTOP
}

export function getDeviceType (): number {
    const windowWidth = window.innerWidth
    if (windowWidth > 1280) {
        return deviceType.DESKTOP
    } else if (windowWidth >= 768) {
        return deviceType.IPAD
    } else {
        return deviceType.MOBILE
    }
}
